import type { FieldConfig } from '@/components/TableFilter.vue'

// 表格列配置
export const tableColumns = [
  {
    title: 'ID',
    dataIndex: 'id',
  },
  {
    title: '統計月份',
    dataIndex: 'statMonth',
  },
  {
    title: '店舖',
    dataIndex: 'shop',
  },
  {
    title: '員工編號',
    dataIndex: 'staffCode',
  },
  {
    title: '醫師姓名',
    dataIndex: 'doctorName',
  },
  {
    title: '員工類型',
    dataIndex: 'staffType',
  },
  {
    title: '可獲佣金',
    dataIndex: 'totalCommission',
  },
  {
    title: '是否歸檔',
    dataIndex: 'isArchived',
  },
  {
    title: '操作',
    key: 'action',
    align: 'center',
  },
]
// 過濾項配置
export const filterFields: FieldConfig[] = [
  {
    name: 'stat_month',
    label: '銷售統計月份',
    type: 'date-picker',
    picker: 'month',
    placeholder: '請選擇銷售統計月份',
  },
  {
    name: 'staff_code',
    label: '醫師編號',
    type: 'input',
    placeholder: '請輸入醫師編號',
  },
  {
    name: 'doctor_name',
    label: '醫師姓名',
    type: 'input',
    placeholder: '請輸入醫師姓名',
  },
]
